var sellinformation = new Vue({
    el:'#sellinformation',
    //初始化数据类型
    data:{
        //横向菜单列表
        goodsType:[],
        //正文（商家详情）
        list:[],

    },
    //时间提交方法
    methods:{
        onclickS:function(sire){
            $.post("/home/commodity/selectCommodityByMerchant",{"id":sire.id},function(data){
            $("#sellinformation").load("http://" + window.location.host + "/person/selldetail.html", function () {
                sire.creationTime = moment().format("YYYY-MM-DD")
                selldetail.sellinformation = sire;
                selldetail.product =data.data.commodityList; ;
                });

            });
        }
    },
    created : function () {
        var _this = this;
        var goodsTypeList = [
            {name: "询价表", href: "../home/offers.html"},
            {name: "报价单", href: "../home/quotation.html"},
        ];
        _this.goodsType = goodsTypeList;
    }
});